<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="{$sets->keyword}" />
<meta name="description" content="{$sets->description}" />
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/post.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/index.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/post.js"></script>
<title>三原县信息网 -- 信息修改</title>
</head>
<body>
<include file="./Tpl/Public/header.html" />
    <div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt; <a href="{:U('/Category/index/','id='.$pid)}">{$parentname}</a> &gt; <a href="{:U('/Category/index/','id='.$cid)}">{$childname}</a> &gt; {$title} </div>
    <div id="main" style="height:auto;padding-bottom:40px;">
        <h2>信息修改</h2>
        <form method="post" class="input" name="input">
            <p class="t">请修改信息</p>
            <dl>
                <dd>所属分类：{$parentname} &gt;&gt; {$childname}</dd>
                <dd class="c"><span class="head">有 效 期：</span> <select class="select" name="keep">
                    <option value="" >请 选 择 有 效 期</option>
                    <option value="永久有效" <eq name="details.keep" value="永久有效">selected="selected"</eq>>永 久 有 效</option>
                    <option value="一年" <eq name="details.keep" value="一年">selected="selected"</eq>>一 年</option>
                    <option value="一月" <eq name="details.keep" value="一月">selected="selected"</eq>>一 月</option>
                    <option value="一周" <eq name="details.keep" value="一周">selected="selected"</eq>>一 周</option>
                </select> <span class="require">*</span> <span class="keep info">信息过期的时间</span><span class="keep success"></span><span class="keep error">请选择一个有效期!</span></dd>
                <dd><span class="head">信息标题：</span> <input type="text" name="title" class="text" value="{$details.title}"/>  <span class="require">*</span> <span class="title info">标题长度2~40位</span><span class="title success"></span><span class="title error">标题格式不合法!</span></dd>
                <volist name="attr" id="value">           
                <if condition="$value['type'] eq 0">     
                    <dd><span class="head">{$value.name}：</span> <input type="text" name="attr[{$value.nickname}]" class="text attr" value="{$cattr[$value['nickname']]}"/> <span class="require">*</span> <span class="attr_text info">请填写{$value.name}</span><span class="attr_text success"></span><span class="attr_text error">此项不可忽略!</span></dd>
                <elseif condition="$value['type'] eq 1" />
                    <dd><span class="head">{$value.name}：</span> <select class="select" name="attr[{$value.nickname}]"> 
                        <volist name="value['details']" id="v">
                        <eq name="cattr[$value['nickname']]" value="$v">
                        <option value="{$v}" selected="selected">{$v}</option>
                        <else />
                        <option value="{$v}">{$v}</option>
                        </eq>
                        </volist>
                    </select> <span class="require">*</span></dd>
                <elseif condition="$value['type'] eq 2" />
                    <dd style="width:390px;"><span class="head">{$value.name}：</span>
                    <volist name="value['details']" id="v">
                        <input type="checkbox" name="attr[{$value.nickname}][]" value="{$v}" class="attr_checkbox" <if condition="in_array($v,$cattr[$value['nickname']])">checked=checked</if> />{$v}&nbsp;
                    </volist>
                        <span class="require">*</span><span class="attr_checkbox info">请选择{$value.name}</span><span class="attr_checkbox success"></span><span class="attr_checkbox error">此项不可忽略!</span></dd>
                <elseif condition="$value['type'] eq 3" />
                    <dd><span class="head">{$value.name}：</span> 
                    <volist name="value['details']" id="v">
                        <input type="radio" name="attr[{$value.nickname}]" value="{$v}" <eq name="cattr[$value['nickname']]" value="$v">checked=checked</eq>/>{$v}&nbsp;
                    </volist>
                        <span class="require">*</span><span class="attr_radio info">请选择{$value.name}</span><span class="attr_radio success"></span><span class="attr_radio error">此项不可忽略!</span></dd>
                </if>
                </dd>
                </volist>
                <dd class="up"><span class="up">上传图片：</span> <input type="text" name="thumbnail[]" class="text" readonly="readonly" value="{$details['thumbnail'][0]}"/> <input type="button"value="上传" onclick="window.open('__APP__/Public/uploads/num/1', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/>
                <input type="text" name="thumbnail[]" class="text" readonly="readonly" value="{$details['thumbnail'][1]}"/> <input type="button" value="上传" onclick="window.open('__APP__/Public/uploads/num/2', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/>
                <input type="text" name="thumbnail[]" class="text" readonly="readonly" value="{$details['thumbnail'][2]}"/> <input type="button"  value="上传" onclick="window.open('__APP__/Public/uploads/num/3', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/></dd>
                <dd><span class="t">详细填写：</span> <textarea name="content">{$details.content}</textarea> <span class="require" style="vertical-align:85px">*</span></dd>
                <div class="important">
                    <dd><span class="head">联系人：</span> <input type="text" name="lianxi" class="text" value="{$details.lianxi}"/> <span class="require">*</span> <span class="lianxi info">联系人2~5位</span><span class="lianxi success"></span><span class="lianxi error">联系人格式不合法!</span></dd>
                    <dd><span class="head">联系手机：</span> <input type="text" name="phone" class="text" value="{$details.phone}"/> <span class="require">*</span> <span class="phone info">联系手机必须11位</span><span class="phone success"></span><span class="phone error">联系人电话不合法!</span></dd>
                    <dd><span class="head">联系QQ：</span> <input type="text" name="qq" class="text" value="{$details.qq}"/> <span class="require">*</span> <span class="qq info">QQ位数5~12位</span><span class="qq success"></span><span class="qq error">联系QQ不合法!</span></dd>
                    <dd><span class="head">电子邮箱：</span> <input type="text" name="email" class="text" value="{$details.email}"/> <span class="require">*</span> <span class="email info">填写电子邮件</span><span class="email success"></span><span class="email error">电子邮件不合法!</span></dd>
                </div>
                <dd class="c"><span class="head">验 证 码：</span> <input type="text" name="checkcode" class="check"/> <img src="__ROOT__/index.php/Public/checkCode" style="position:relative;top:10px;cursor:pointer;" onclick="this.src='__ROOT__/index.php/Public/checkCode/id/'+Math.random();" />  <span class="require">*</span> <span class="check loading"><img src="__ROOT__/Tpl/Public/images/loading2.gif" /></span><span class="check info">输入验证码</span><span class="check success"></span><span class="check error">验证码错误!</span></dd>
                <dd><input type="submit" name="send" value="修　改" class="sub"/></dd>
                <input type="hidden" id="flag" value="true"/>
                <input type="hidden" id="root" value="__ROOT__"/>
                <input type="hidden" name="id" value="{$details.id}"/>
            </dl>
        </form>
        
        
    </div>
<include file="./Tpl/Public/footer.html" />
</body>
</html>